package com.tsunami.authority.vo.core;

import com.tsunami.authority.enums.common.ComStatus;
import com.tsunami.authority.enums.common.DelFlag;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * @author lx
 * @date 2024-10-29
 */
@Data
public class DeptVo implements Serializable {

    private Long id;

    @Schema(description = "租户号")
    private Long tenantId;
    /**
     * 父部门ID
     */
    @Schema(description = "父部门ID")
    private Long parentId;
    /**
     * 祖级列表
     */
    @Schema(description = "祖级列表")
    private String ancestors;
    /**
     * 部门名称
     */
    @Schema(description = "部门名称")
    private String name;
    /**
     * 部门编码
     */
    @Schema(description = "部门编码")
    private String code;
    /**
     * 显示顺序
     */
    @Schema(description = "显示顺序")
    private String sort;
    /**
     * 负责人
     */
    @Schema(description = "负责人")
    private Long leader;
    /**
     * 联系电话
     */
    @Schema(description = "联系电话")
    private String phone;
    /**
     * 邮箱
     */
    @Schema(description = "邮箱")
    private String email;
    /**
     * 部门状态
     */
    @Schema(description = "部门状态")
    private ComStatus status;
    /**
     * 删除标志
     */
    @Schema(description = "删除标志")
    private DelFlag delFlag;

    /**
     * 部门类型
     */
    @Schema(description = "部门类型")
    private Long type;
}
